<%--
  Created by IntelliJ IDEA.
  User: Shinelon
  Date: 2017/6/18
  Time: 17:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="<%=path%>/css/bootstrap.css">
    <link rel="stylesheet" href="<%=path%>/css/common.css">
</head>
<body>

<!--head-->
<div id="header">
    <div class="container">
        <h1>报销管理系统</h1>
    </div>
</div>

<!--发票-->
<div id="second-header">
    <div class="container">
        <div class="row">
            <div class="col-sm-3">
                <form action="/demo/budget/budget" method="post">
                    <button class="btn btn-danger btn-block" type="submit" id="" >项目预算表</button>
                </form>
            </div>
            <div class="col-sm-3">
                <form action="/demo/budget/checktotalbills" method="post">
                    <button class="btn btn-danger btn-block" type="submit" id="" >审核报销汇总单</button>
                </form>
            </div>
            <div class="col-sm-3">
                <form action="/demo/budget/checktripbills" method="post">
                    <button class="btn btn-danger btn-block" type="submit" id="" >审核出差报销单</button>
                </form>
            </div>
        </div>
    </div>
</div>

<div class="container" id="content">
    <h2 class="text-center">
        浙江大学城市学院项目预算表
    </h2>

    <div id="btn-bar" class="">
        <div class="row">
            <div class="col-sm-4">
                <form action="/demo/budget/increase" method="post">
                    <button class="btn btn-danger btn-block" type="submit" id="increase" >新增</button>
                </form>
            </div>
            <div class="col-sm-4">
                <form action="/demo/budget/check" method="post">
                    <button class="btn btn-danger btn-block" type="submit" id="search">查看</button>
                </form>
            </div>
        </div>
    </div>

    <form:form modelAttribute="budget" action="/demo/budget/update" method="post">
        <table class="table table-bordered">
            <!--1-->
            <tr>
                <td>项目名称</td>
                <td colspan="5"><from:input path="buname"/></td>
            </tr>
            <!--1-->
            <tr>
                <td>项目计划类别</td>
                <td colspan="3"><input path="kinds"/></td>
                <td>代码</td>
                <td><input path="kindscode"/></td>
            </tr>
            <!--1-->
            <tr>
                <td>技术管理领域</td>
                <td colspan="3"><input path="zone"/></td>
                <td>代码</td>
                <td><input path="zonecode"/></td>
            </tr>
            <!--1-->
            <tr>
                <td>项目技术来源</td>
                <td colspan="3"><input path="source"/></td>
                <td>代码</td>
                <td><input path="sourcecode"/></td>
            </tr>
            <!--1-->
            <tr>
                <td>开始日期</td>
                <td colspan="2">
                    <input type="date" path="start">
                </td>
                <td>完成日期</td>
                <td colspan="2">
                    <input type="date" path="end">
                </td>
            </tr>
            <!--1-->
            <tr>
                <td rowspan="2">项目经费预算（万元）</td>
                <td colspan="2">总计</td>
                <td>自筹和配备</td>
                <td colspan="2">向省厅申请</td>
            </tr>
            <!--1-->
            <tr>
                <td colspan="2"><from:input path="sum"/></td>
                <td><input path="mate"/></td>
                <td colspan="2"><input path="apply"/></td>
            </tr>
            <!--1-->
            <tr>
                <td rowspan="6">项目总经费开支预算（万元）</td>
                <td>设备费</td>
                <td>材料费</td>
                <td>测试化验加工费</td>
                <td colspan="2">合作、协作研究与交流费</td>
            </tr>
            <!--1-->
            <tr>
                <td><input path="service"/></td>
                <td><input path="material"/></td>
                <td><input path="machining"/></td>
                <td colspan="2"><input path="communicate"/></td>
            </tr>
            <!--1-->
            <tr>
                <td>差旅费</td>
                <td>劳务费</td>
                <td>燃料动力费</td>
                <td colspan="2">出版/文献/信息知识产权事务费</td>
            </tr>
            <!--1-->
            <tr>
                <td><input path="tripfee"/></td>
                <td><input path="workfee"/></td>
                <td><input path="fuel"/></td>
                <td colspan="2"><input path="publish"/></td>
            </tr>
            <!--1-->
            <tr>
                <td>会议费</td>
                <td>激励费</td>
                <td>管理费</td>
                <td colspan="2">专家咨询交流费</td>
            </tr>
            <!--1-->
            <tr>
                <td><input path="meeting"/></td>
                <td><input path="push"/></td>
                <td><input path="manage"/></td>
                <td colspan="2"><input path="expert"/></td>
            </tr>
        </table>
        <button type="submit" id="handup">提交</button>
    </form:form>
</div>
<div>
    JSP真难<br>
</div>
<script type="text/javascript">
    $(function() {
        $("#handup").click(function(event) {
            $("#budget").attr("action", "/demo/budget/update")
            $("#budget").submit();
        });
    });
</script>
<script src="js/jquery-1.11.3.js"></script>
<script src="js/bootstrap.js"></script>
</body>
</html>
